//organization := "ws.corbin"
//
//name := "slick-codegen"
//
//version := "0.0.1"
//
//scalaVersion := "2.11.7"
//
//unmanagedBase := baseDirectory.value / "libs"
//
//
//scalacOptions := Seq("-unchecked", "-Xexperimental", "-feature", "-deprecation", "-encoding", "utf8")
//
//lazy val verScala = "2.11.7"
//
//libraryDependencies ++= Seq(
//  //  "com.typesafe.play" %% "play-slick" % "1.0.1",
//  "com.typesafe.play" %% "play-json" % "2.4.2",
//  "org.scala-lang" % "scala-library" % verScala,
//  "org.scala-lang" % "scala-compiler" % verScala,
//  "org.scala-lang" % "scala-reflect" % verScala,
//  "com.typesafe.slick" %% "slick" % "3.0.0",
//  "com.typesafe.slick" %% "slick-codegen" % "3.0.0",
//  "mysql" % "mysql-connector-java" % "5.1.35",
//  "org.slf4j" % "slf4j-api" % "1.7.12",
//  "joda-time" % "joda-time" % "2.7",
//  "com.zaxxer" % "HikariCP" % "2.3.9"
//)
//
//
////mainClass in(Compile, run) := Some("SlickCodeGenerator")
//mainClass in run := Some("SlickCodeGenerator")
//
//slick <<= slickCodeGenTask
//
//sourceGenerators in Compile <+= slickCodeGenTask
//
//lazy val slick = TaskKey[Seq[File]]("slick-codegen")
//lazy val slickCodeGenTask = ( /*scalaSource in Compile,*/ dependencyClasspath in Compile, runner in Compile, streams) map { (/*dir,*/ cp, r, s) =>
//  toError(r.run("SlickCodeGenerator", cp.files, Array[String](), s.log))
//  val f = new File("com.example.models.Models.scala")
//  Seq(file(f.getAbsolutePath))
//}
